package com.qujia.customer.mapper;

import java.util.List;
import com.qujia.customer.domain.CustomerCardRecordConsumption;

/**
 * 客户电子会员卡消费记录Mapper接口
 * 
 * @author qujia
 * @date 2021-04-13
 */
public interface CustomerCardRecordConsumptionMapper 
{
    /**
     * 查询客户电子会员卡消费记录
     * 
     * @param id 客户电子会员卡消费记录ID
     * @return 客户电子会员卡消费记录
     */
    public CustomerCardRecordConsumption selectCustomerCardRecordConsumptionById(Long id);

    /**
     * 查询客户电子会员卡消费记录列表
     * 
     * @param customerCardRecordConsumption 客户电子会员卡消费记录
     * @return 客户电子会员卡消费记录集合
     */
    public List<CustomerCardRecordConsumption> selectCustomerCardRecordConsumptionList(CustomerCardRecordConsumption customerCardRecordConsumption);

    /**
     * 新增客户电子会员卡消费记录
     * 
     * @param customerCardRecordConsumption 客户电子会员卡消费记录
     * @return 结果
     */
    public int insertCustomerCardRecordConsumption(CustomerCardRecordConsumption customerCardRecordConsumption);

    /**
     * 修改客户电子会员卡消费记录
     * 
     * @param customerCardRecordConsumption 客户电子会员卡消费记录
     * @return 结果
     */
    public int updateCustomerCardRecordConsumption(CustomerCardRecordConsumption customerCardRecordConsumption);

    /**
     * 删除客户电子会员卡消费记录
     * 
     * @param id 客户电子会员卡消费记录ID
     * @return 结果
     */
    public int deleteCustomerCardRecordConsumptionById(Long id);

    /**
     * 批量删除客户电子会员卡消费记录
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    public int deleteCustomerCardRecordConsumptionByIds(Long[] ids);

    /**
     * 获取客户电子会员卡消费汇总金额
     */
    public  CustomerCardRecordConsumption xfAmtQuery(CustomerCardRecordConsumption customerCardRecordConsumption);
    /**
     * 获取客户电子会员卡消费汇总折线图X轴数据
     */
    public List<CustomerCardRecordConsumption> listXdata(CustomerCardRecordConsumption customerCardRecordConsumption);


    /**
     * 获取客户电子会员卡消费汇总折线图充值数据
     */
    public List<CustomerCardRecordConsumption> listQydataXF(CustomerCardRecordConsumption customerCardRecordConsumption);

    public CustomerCardRecordConsumption listXFData(CustomerCardRecordConsumption customerCardRecordConsumption);
}
